import axios from "axios";
export const getTick = (startCity, endCity, date) => {
  return axios({
    method: "POST",
    url: "https://m.ctrip.com/restapi/soa2/14666/json/GetBookingByStationV3?_fxpcqlniredt=09031032316993729112&x-traceID=09031032316993729112-1677658919740-3245977",
    data: {
      ArriveStation: endCity,
      ChannelName: "ctrip.pc",
      DepartDate: date,
      DepartStation: startCity,
      Student: false,
      c_sec: true,
      channel: "PC",
      contentType: "json",
      head: {
        APIKey: "CtripWap",
        auth: "",
        cid: "09031049313810569667",
        clientID: "09031049313810569667",
        ctok: "",
        cver: "1.0",
        extension: [{ name: "protocal", value: "https" }],
        lang: "01",
        sid: "8888",
        source: "Online",
        syscode: "09",
        version: "708.000",
        xsid: "",
      },
    },
  });
};
